//
//  XHSegmentControl.h
//  HarmonizePub
//
//  Created by Haven on 2016/11/3.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XHSegmentControlDelegate <NSObject>

- (void)selectSegmentControlWithIndex: (NSInteger)index;

@end

@interface XHSegmentControl : UIView

// segmentItems
@property (nonatomic, strong) NSArray *itemsArray; // 内容

@property (nonatomic, weak) id<XHSegmentControlDelegate> delagate;

// 设置属性
- (void)setSegmentWithNormalColor: (UIColor *)normalColor selectColor: (UIColor *)selectColor fontSize: (CGFloat)fontSize;

// 修改index
- (void)changeSegmentControlIndex: (NSInteger)index;
@end
